package com.shlh.saas.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 支付配置类
 */
@Configuration
@ConfigurationProperties(prefix = "payment")
@Data
public class PaymentConfig {

    private WechatPayConfig wechatPay;
    private AlipayConfig alipay;

    @Data
    public static class WechatPayConfig {
        private String appId;
        private String mchId;
        private String mchKey;
        private String notifyUrl;
    }

    @Data
    public static class AlipayConfig {
        private String appId;
        private String privateKey;
        private String publicKey;
        private String alipayPublicKey;
        private String notifyUrl;
        private String returnUrl;
        private boolean sandbox = false; // 是否使用沙箱环境，默认为false
    }
} 